<template>
    <div class="content-wrapp">
        <v-form @submitForm="submitForm" ref="form"></v-form>
        <v-table :formData="formData" @findChargeMan="findChargeMan" @columns="columns"></v-table>
    </div>
</template>
<script>
import vTable from "./table.vue";
import vForm from "./form.vue";
export default {
    data() {
        return {
            formData: {}
        };
    },
    methods: {
        submitForm(val) {
            this.formData = JSON.parse(JSON.stringify(val));
        },
        findChargeMan() {
            this.$refs.form.getFindChargeMan();
        },
        columns(val) {
            this.$refs.form.getColumns(val);
        }
    },
    components: {
        vForm,
        vTable
    }
};
</script>
<style lang="stylus" scoped>
</style>

